package com.fare.taluo.core.domain.crawl;

import java.sql.Date;
import java.util.List;

import com.dayatang.domain.EntityRepository;

public interface FdcCrawlStatisticsEntityRepository extends EntityRepository{

	/**
	 * operation for history table
	 * 1.insert 
	 * 2.select
	 * 3.delete
	 * 4.update
	 * */
	public void saveDatas(List<FdcCrawlStatisticsEntity> entityList);
	
	public List<FdcCrawlStatisticsEntity> findByGrabDate(String fromCity,String toCity,Date date1,Date date2,Date dateGrabDate);
	
	public void deleteEntitys(String fromCity,String toCity,Date grabDate);
	
	public void updateDatas(List<FdcCrawlStatisticsEntity> entityList);
	
	/**
	 * insert for grab table
	 * 1.insert
	 * 2.delete
	 * 3.update
	 * */	
	public void saveDatasForGrabDate(List<FdcCrawlStatisticsForGrabDateEntity> entityList);
	
	public void deleteEntityByGrabDate(Date grabDate);
	
	public void updateDatasForGrabDate(List<FdcCrawlStatisticsForGrabDateEntity> entityList);
	
	/**
	 * operation for grab flightLine  table
	 * 1.insert
	 * 2.update
	 * */
	public void saveDatasForFlightLine(List<FdcCrawlStatisticsForFlightLineEntity> entityList);
	
	public void updateDatasForFlightLine(List<FdcCrawlStatisticsForFlightLineEntity> updateListEntity);

	


}
